package cn.wolfcode.mapper;

import cn.wolfcode.domain.Role;
import cn.wolfcode.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Role record);

    Role selectByPrimaryKey(Long id);

    List<Role> selectAll();

    int updateByPrimaryKey(Role record);

    List<Role> selectByEmpId(Long id);

//    int queryForCount(QueryObject qo);

    List<Role> queryForList(QueryObject qo);

    void deleteRelation(Long id);

    void insertBatchRelation(@Param("id") Long id, @Param("ids") Long[] ids);
}